/* QtLua -- Lua bindings for Qt
   Copyright (C) 2011, Jarek Pelczar

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 3 of the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General
   Public License along with this library; if not, write to the
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301 USA

*/

#define QT_STATICPLUGIN

#include "qttypewrappers_p.h"
#include "qluascriptvalue.h"
#include "qluascriptcontext.h"
#include "qluaglobal.h"
#include "qluaexception.h"
#include "qdatetime_prototype.h"

#include <QtPlugin>
#include <QDebug>
#include <QRect>

#include "wrap_QPoint.h"
#include "wrap_QSize.h"
#include "wrap_QRect.h"
#include "wrap_QLine.h"

QtTypeWrappers::QtTypeWrappers(QObject *parent) :
    QObject(parent)
{
}

void QtTypeWrappers::registerPlugin(QLuaScriptEngine * engine)
{    
    new QPoint_wrapper(engine);
    new QPointF_wrapper(engine);
    new QSize_wrapper(engine);
    new QSizeF_wrapper(engine);
    new QRect_wrapper(engine);
    new QRectF_wrapper(engine);
    new QDateTime_wrapper(engine);
    new QLine_wrapper(engine);
    new QLineF_wrapper(engine);
}

Q_EXPORT_PLUGIN(QtTypeWrappers)
Q_IMPORT_PLUGIN(QtTypeWrappers)
